package org.example.mallchat.service;

import org.example.mallchat.domain.vo.response.UserBadgeRep;
import org.example.mallchat.domain.vo.response.UserInfoRep;

import java.util.List;

/**
 * @author: zzh
 * @date: 2024/12/22 22:48:27
 * @version: 1.0
 */
public interface UserService {

    /**
     * Register a new user
     */
    void register(String openId);


    /**
     * 获取用户信息 包括改名卡次数！user_backpack表
     * @param uid
     * @return
     */
    UserInfoRep getUserInfo(String uid);

    /**
     * 修改用户名
     * @param uid
     * @param userName
     */
    void modifyUserName(String uid, String userName);

    /**
     * 获取用户的勋章列表
     * @param uid
     * @return
     */
    List<UserBadgeRep> getBadgeList(String uid);

    /**
     * 佩戴徽章
     * @param uid
     * @param wearingItemId
     * @return
     */
    Void wearBadge(String uid, Long wearingItemId);
}
